package com.future.dao;

import java.util.Date;
import java.util.List;

import com.future.common.base.BaseDao;
import com.future.model.Booked;

public class BookedDao extends BaseDao<Booked> {

	public List<Booked> getMyBookedClassRoom(String userid) {
		return find(userid);
	}

	public List<Booked> getBookedRoom(String roomNo, Date startDate, Date endDate) {
		return find(roomNo, startDate, endDate);
	}

	public Booked getCloseToEndBooking(String userid){
		return findFirst(userid);
	}
}
